package service

import (
	"organoid_public/domain/sample/model"
	"organoid_public/domain/sample/repository"
	"organoid_public/infrastructure/db/gormclient"
	"organoid_public/pkg/logger"
)

type BrowseService struct {
	log        logger.Logger
	browseRepo repository.Browse
}

func NewBrowseService(log logger.Logger, browseRepo repository.Browse) BrowseServiceInterface {
	return &BrowseService{
		log:        log,
		browseRepo: browseRepo,
	}
}

func (s *BrowseService) GeneralList(params *repository.GeneralListParams) (*gormclient.PageList[model.BrowseGeneral], error) {
	return s.browseRepo.GeneralPageList(params)
}
